<html>
	<body>
		<h2>{{ player.scn.title }}-{{ player.level }}层-{{ player.turn }}回合</h2>
		<form method="post">
			<p>当前怪物</p>
			<center>
				<table border="1">
					<tr>
						<th>名称</th>
						<th>生命</th>
						<th>命中</th>
						<th>特效</th>
						<th>操作</th>
					</tr>
					{% for enemy in player.enemy %}
					<tr>
						<td>
							{% ifequal enemy.hp 0 %}<strike>{% endifequal %}
							{{ enemy.data.title }}
							{% ifequal enemy.hp 0 %}</strike>{% endifequal %}
						</td>
						<td>{{ enemy.hp }}</td>
						<td>
							{% for d in enemy.data.hit %}
							<img src="/img/{{ d }}.png" width="32" height="32">
							{% endfor %}
						</td>
						<td>{{ enemy.data.effect }}</td>
						<td>
							{% ifnotequal enemy.hp 0 %}
							{% if ehoptions %}
							<select name="hurt_{{ forloop.counter0 }}">
								{% for opt in ehoptions %}
								<option value="{{ opt.id }}">{{ opt.title }}</option>
								{% endfor %}
							</select>
							{% endif %}
							{% endifnotequal %}
						</td>
					</tr>
					{% endfor %}
				</table>
			</center>
			<hr>
			<center>
				{% include html %}
			</center>
			<hr>
			<p>队员状态</p>
			<center>
				<table border="1">
					<tr>
						<th>名称</th>
						<th>生命</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
					{% for member in player.team %}
					<tr>
						<td>{{ member.data.title }}</td>
						<td>{{ member.hp }}</td>
						<td>
							{% ifequal member.st -2 %}
							暂时冰冻
							{% endifequal %}
							{% ifequal member.st -1 %}
							消失
							{% endifequal %}
							{% ifequal member.st 0 %}
							死亡
							{% endifequal %}
							{% ifequal member.st 1 %}
							存活
							{% endifequal %}
						</td>
						<td>
							{% if mcoptions %}
							<select name="{{ member.data.name }}">
								{% for opt in mcoptions %}
								{% ifequal opt.id "gandr" %}
								{% ifequal member.data.name "wizard" %}
								<option value="{{ opt.id }}">{{ opt.title }}</option>
								{% endifequal %}
								{% else %}
								<option value="{{ opt.id }}">{{ opt.title }}</option>
								{% endifequal %}
								{% endfor %}
							</select>
							{% endif %}
						</td>
					</tr>
					{% endfor %}
				</table>
			</center>
			<hr>
			<center>
				<input type="submit" value="下一步">
			</center>
		</form>
	</body>
</html>
